﻿<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/Master_Page/Master_IPORT.Master" CodeBehind="Sum_Tariff_Not_Pay.aspx.vb" Inherits="I_PORT.Sum_Tariff_Not_Pay" 
    title="IRPC INTELLIGENT PORT SERVICE" %>
    
 <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<style type="text/css">
    td.locked, th.locked {
position:relative;    
left:expression((this.parentElement.parentElement.parentElement.parentElement.scrollLeft-2)+'px');
}   
</style>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
   <ContentTemplate>
   <table width="100%" border="0" cellpadding="0" cellspacing="0">
   <tr>
     <td>
        <table width="100%" border="0" cellpadding="2" cellspacing="0">
           <tr>
              <td colspan="2" style="height:5px;"><img src="../Image/space.gif" /></td>
           </tr>
           <tr>
             <td style="width:20%;" align="right"><asp:Label ID="Label2" runat="server" SkinID="lbtxt" Text="DATE :"></asp:Label>&nbsp;</td>
             <td align="left"><asp:TextBox ID="txtDate" runat="server" Width="80px" onkeypress="return false;" ></asp:TextBox>&nbsp;<asp:ImageButton ID="ImgDate" runat="server" ImageUrl="~/Image/calendar.png" />&nbsp;<asp:Label ID="Label3" runat="server" SkinID="lbtxt" Text="TO"></asp:Label>&nbsp;<asp:TextBox ID="txtDateTo" runat="server" Width="80px"  onkeypress="return false;" ></asp:TextBox>&nbsp;<asp:ImageButton ID="ImgDateTo" runat="server"  ImageUrl="~/Image/calendar.png" />
                 <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDate" Format="dd MMM yyyy" PopupButtonID="ImgDate"></asp:CalendarExtender>
                 <asp:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtDateTo" Format="dd MMM yyyy" PopupButtonID="ImgDateTo" ></asp:CalendarExtender>
             </td>
           </tr>
           <tr>
             <td style="width:20%;" align="right"><asp:Label ID="Label4" runat="server" SkinID="lbtxt" Text="PORT :"></asp:Label>&nbsp;</td>
             <td NOWRAP align="left" >
                 <asp:RadioButtonList ID="radioPORT" SkinID="raio" AutoPostBack="true" RepeatDirection="Horizontal" runat="server">
                   <asp:ListItem Selected="True" Value="B">Bulk</asp:ListItem>
                   <asp:ListItem Value="L">Liquid</asp:ListItem>
                 </asp:RadioButtonList>
             </td>
           </tr>
           <tr id="rowDestination" runat="server" visible="false">
             <td style="width:20%;" align="right"><asp:Label ID="Label1" runat="server" SkinID="lbtxt" Text="Destination :"></asp:Label>&nbsp;</td>
             <td NOWRAP align="left" >
                 <asp:RadioButtonList ID="radioDestination" SkinID="raio" RepeatDirection="Horizontal" runat="server">
                   <asp:ListItem Selected="True" Value="I">DOMESTIC</asp:ListItem>
                   <asp:ListItem Value="O">FOREIGN</asp:ListItem>
                 </asp:RadioButtonList>
             </td>
           </tr>
           <tr>
             <td style="width:20%;" align="right"><asp:Label ID="Label6" runat="server" SkinID="lbtxt" Text="Type :"></asp:Label>&nbsp;</td>
             <td NOWRAP align="left" >
                 <asp:RadioButtonList ID="RadioTYpePay" SkinID="raio" RepeatDirection="Horizontal" AutoPostBack="true" runat="server">
                   <asp:ListItem Selected="True" Value="A">Allocate</asp:ListItem>
                   <asp:ListItem Value="C">Cash in</asp:ListItem>
                 </asp:RadioButtonList>
             </td>
           </tr>
           <tr id="rowAgent" runat="server" visible="false">
             <td style="width:20%;" align="right"><asp:Label ID="Label5" runat="server" SkinID="lbtxt" Text="Main Agent :"></asp:Label>&nbsp;</td>
             <td NOWRAP align="left" >
                 <asp:TextBox ID="txtAgent" runat="server" Width="350px" ></asp:TextBox>
             </td>
           </tr>
           <tr>
             <td style="width:20%;" align="right">&nbsp;</td>
             <td NOWRAP align="left" >
                 <asp:Button ID="btnSearch" runat="server" Text="ค้นหา" CssClass="ButtonStyle" />
             </td>
           </tr>
            <tr>
             <td colspan="2" align="center">
               <asp:Panel ID="panelGridItem" runat="server" Width="900px" ScrollBars="Horizontal">
                <asp:GridView ID="gridItem" runat="server" SkinID="gridblue" DataKeyNames="Booking_no"
                                                AutoGenerateColumns="False">
                                                <PagerTemplate>
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                <asp:ImageButton ID="ImgFirst" runat="server" Height="22px" ImageUrl="../Image/arrow-first.gif"
                                                                    OnCommand="Paginate" CommandArgument="First" CommandName="Page" />
                                                            </td>
                                                            <td>
                                                                <asp:ImageButton ID="ImgBack" runat="server" Height="22px" ImageUrl="../Image/arrow-back.gif"
                                                                    OnCommand="Paginate" CommandArgument="Prev" CommandName="Page" />
                                                            </td>
                                                            <td valign="top">
                                                                Page
                                                                <asp:DropDownList ID="ddlPage" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlPage_SelectedIndexChanged">
                                                                </asp:DropDownList>
                                                                of
                                                                <asp:Label ID="lbPageCount" runat="server" Text="Label"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:ImageButton ID="ImgNext" runat="server" Height="22px" ImageUrl="../Image/arrow-next.gif"
                                                                    OnCommand="Paginate" CommandArgument="Next" CommandName="Page" />
                                                            </td>
                                                            <td>
                                                                <asp:ImageButton ID="ImgEnd" runat="server" Height="22px" ImageUrl="../Image/arrow-end.gif"
                                                                    OnCommand="Paginate" CommandArgument="Last" CommandName="Page" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </PagerTemplate>
                                                <Columns>
                                                    <asp:BoundField HeaderText="Booking No." DataField="Booking_no" ItemStyle-Wrap="false" HeaderStyle-CssClass="locked" ItemStyle-CssClass="locked"  />
                                                    <asp:BoundField HeaderText="Ship's Name" DataField="Vehicle_Text" ItemStyle-Wrap="false" HeaderStyle-CssClass="locked" ItemStyle-CssClass="locked"  />
                                                    <asp:BoundField HeaderText="Berth" DataField="Berth" ItemStyle-Wrap="false" />
                                                    <asp:BoundField HeaderText="Depart" DataField="Depart" ItemStyle-Wrap="false" />
                                                    <asp:BoundField HeaderText="Berth/Depart" DataField="Hr" ItemStyle-Wrap="false" />
                                                    <asp:BoundField HeaderText="Load" DataField="Product_Load" ItemStyle-Wrap="false" />
                                                    <asp:BoundField HeaderText="Disch." DataField="Product_Disch" ItemStyle-Wrap="false" />
                                                    <asp:BoundField HeaderText="MT." DataField="Product_Amount" ItemStyle-Wrap="false" />
                                                    <asp:BoundField HeaderText="Wharf" DataField="Wharf" ItemStyle-Wrap="false" />
                                                    <asp:BoundField HeaderText="Moring Boat" DataField="_184" ItemStyle-Wrap="false" />
                                                    <asp:BoundField HeaderText="Port Due" DataField="_200" ItemStyle-Wrap="false" />
                                                    <asp:BoundField HeaderText="Berth Hire" DataField="_001" ItemStyle-Wrap="false" />
                                                    <asp:BoundField HeaderText="Cargo Wharfage" DataField="_268" ItemStyle-Wrap="false" />
                                                    <asp:BoundField HeaderText="Tug" DataField="_236" ItemStyle-Wrap="false" />
                                                    <asp:BoundField HeaderText="Gate Admission" DataField="_100" ItemStyle-Wrap="false" />
                                                    <asp:BoundField HeaderText="Weighting Service" DataField="_255" ItemStyle-Wrap="false" />
                                                    <asp:BoundField HeaderText="Summary" DataField="_Sum" ItemStyle-Wrap="false" />
                                                </Columns>
                                            </asp:GridView>
                    </asp:Panel>
             </td>
           </tr>
           <tr id="rowType" runat="server" visible="false">
             <td style="width:20%;" align="right"><asp:Label ID="lbTariff" runat="server" SkinID="lbtxt" Text="Type :"></asp:Label>&nbsp;</td>
             <td align="left">
                 <asp:RadioButtonList ID="radioType"  SkinID="raio" RepeatDirection="Horizontal" runat="server">
                   <asp:ListItem Selected="True" Value="pdf">PDF</asp:ListItem>
                   <asp:ListItem Value="excel">EXCEL</asp:ListItem>
                 </asp:RadioButtonList>
             </td>
           </tr>
           <tr id="rowPrint" runat="server" visible="false" >
             <td style="width:20%;" align="right">&nbsp;</td>
             <td align="left">
                 <asp:Button ID="btnPrint" runat="server" Text="Print" CssClass="ButtonStyle" />
             </td>
           </tr>
           <tr>
              <td colspan="2" style="height:5px;"><img src="../Image/space.gif" /></td>
           </tr>
        </table>
     </td>
    </tr>
   </table>
   </ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
